package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.coupons.domain.martcap.repository.ICapBatchRepository;
import cc.lj.internal.coupons.domain.ticket.repository.ITicketBatchRepository;
import cc.lj.internal.coupons.infrastructure.po.TicketBatchPO;
import cc.lj.internal.coupons.infrastructure.repository.mysql.CapBatchMysqlRespository;
import cc.lj.internal.coupons.infrastructure.repository.mysql.TicketBatchMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


/**
 * 电子券批次表仓储实现
 * @author liangxifeng
 * @date 2021-12-11
 */
@Repository("ticketBatchRepository")
public class TicketBatchRepository implements ITicketBatchRepository {
    @Resource(name="ticketBatchMysqlRespository")
    private TicketBatchMysqlRespository repository;


    @Override
    public Integer updateById(TicketBatchPO entityPO) {
        return repository.updateById(entityPO);
    }

    @Override
    public TicketBatchPO getById(Integer id) {
        TicketBatchPO entityPO = repository.getById(id);
        return entityPO;
    }

    @Override
    public PageInfo<TicketBatchPO> selectPage(PageParam pageParam) {
        return repository.selectPage(pageParam);
    }

    @Override
    public List<TicketBatchPO> getList(TicketBatchPO activityBatchRationPO) {
        return repository.getList(activityBatchRationPO);
    }

    @Override
    public List<TicketBatchPO> selectBatchIds(List<Integer> batchIdList) {
        return repository.selectBatchIds(batchIdList);
    }

    @Override
    public List<TicketBatchPO> getNoBindCodeListByIds(List<Integer> batchIdList) {
        return repository.getNoBindCodeListByIds(batchIdList);
    }

    @Override
    public List<TicketBatchPO> getByIds(List<Integer> batchIds) {
        return repository.getByIds(batchIds);
    }

}
